package org.goldenport.g3.sample

import org.goldenport.g3._

/**
 * @since   Apr.  6, 2010
 * @version Sep. 26, 2010
 * @author  ASAMI, Tomoharu
 */
class Subscribers extends G3Application {
  channel('topics)

  subscribe('agent1, "topics") agent {
    case x: String => println("agent1 = " + x);x
  }

  subscribe('agent2, "topics") agent {
    case x: String => println("agent2 = " + x);x
  }

  subscribe('agent3, "topics") agent {
    case x: String => println("agent3 = " + x);x
  }

  start("hello") publish("topics")
}
